home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-13 | 1.1 KB | 31 lines | [TEXT/ttxt] |
- Local Number and Currency Formatting
- --------------------------------------------------------
-
- On the Macintosh OS, the "Numbers" control panel provides the user with a way to
- define what region they are in. The Finder will use this information to display numbers
- in a localized format. If you want your application to display numbers and monetary
- amounts in the correct format for the region your user in is, all you have to do is call
- one of the following routines provided by locfmt.c
-
- locfmt_Num2Str() - convert an integer to a local number str
- locfmt_Str2Str() - convert pascal str to a local number str
- locfmt_Dec2Str() - convert 'decimal' str to a local number str
-
- locfmt_Num2CurrStr() - convert an integer to a local currency str
- locfmt_Dec2CurrStr() - convert 'decimal' str to a local currency str
-
-
- Make sure you are using a recent version of Apple's Universal Headers
- as locfmt.h will test for the define GENERATING68K. Older versions
- do not have this define.
-
- locfmt.c has been compiled by the following:
-
- - Symantec C 7.0.4
- - MetroWorks C 68K 1.2.2 Lite
- - MetroWorks C PPC 1.2.2 Lite
-
- I can be reached at
- Dale_Semchishen@mindlink.net
-
-